package com.zhengtoon.mctoon.conv.dao.sdzc;

import org.apache.ibatis.annotations.Param;

import com.zhengtoon.mctoon.conv.bean.sdzc.TransferLetter;

import java.util.List;

/**
 * 转办子信件DAO接口
 *
 * @author 刘振华
 * @since 2017-04-12
 * Copyright: Copyright (c) 2017
 * Company:北京政务通有限公司
 */
public interface TransferLetterMapper {


    /**
     * 查询子信件列表
     *
     * @param ghlTransferLetterId, ghlWriter, ghlOrgName, ghlSubmitTime, ghlLetterStatus, createTime, updateTime
     * @return TransferLetter
     */
    TransferLetter selectSingle(String ghlTransferLetterId, String ghlWriter, String ghlOrgName, String ghlSubmitTime, String ghlLetterStatus, String createTime, String updateTime);

    /**
     * 根据id查询子信件信息	144637
     *
     * @param transferLetterId
     * @return
     */
    TransferLetter queryTransferLetterById(@Param("transferLetterId") String transferLetterId);

    /**
     * 根据内部信件id查询转办子信件列表	144637
     *
     * @param sysLetterId
     * @return
     */
    List<TransferLetter> queryTransferLetterBySysLetterId(@Param("sysLetterId") String sysLetterId);

    /**
     * 查询转办子信件id count  144637
     *
     * @param transferLetterId
     * @return
     */
    Integer queryTransIdCount(String transferLetterId);

    /**
     * 插入转办子信件表     144637
     *
     * @param transferLetterEntity
     */
    void insertTransferLetter(TransferLetter transferLetterEntity);
}